/*
 * CommandePeserr.h
 *
 *  Created on: 21 dec. 2012
 *      Author: guegan
 */


#include "CommandePeser.h"

CommandePeser* CommandePeser::instance = NULL;

CommandePeser* CommandePeser::getInstance() {
	if (instance == NULL)
		instance = new CommandePeser();
	
	return instance;
}

Commande* CommandePeser::constructeurVirtuel() {
	Commande* com = new CommandePeser();
	
	return com;
}

void CommandePeser::execute() {
	bot->peser();
}

void CommandePeser::desexecute() {
	throw Commande::NonReversibleException();
}

bool CommandePeser::reversible() {
	return false;
}

